from app.config import Config
from sqlalchemy import create_engine
from sqlalchemy.orm import sessionmaker

def get_engine():
    engine = create_engine(Config.SQLALCHEMY_DATABASE_URI)
    return engine


def get_base_session():
    session = sessionmaker(bind=get_engine())
    return session()

from .dacheng import *
from .pinxiang import *
from .part1_defs import *
from .part2_defs import *
from .part3_defs import *
from .pinxiang_jihua_upload import *

from .my_ext_func import *